package com.jspxcms.plug.domain;

import javax.persistence.*;

/**
 *
 * CREATE TABLE `plug_test` (
 `f_info_id` int(11) NOT NULL,
 `f_id` int(11) NOT NULL,
 `f_item` int(11) NOT NULL DEFAULT '0' COMMENT '试题类型0为单选1为多选，0为默认',
 `f_stem` varchar(300) DEFAULT NULL COMMENT '题干',
 `f_answer` varchar(50) DEFAULT NULL COMMENT '答案',
 `f_option1` varchar(300) DEFAULT NULL COMMENT '选项1',
 `f_option2` varchar(300) DEFAULT NULL COMMENT '选项2',
 `f_option3` varchar(300) DEFAULT NULL COMMENT '选项3',
 `f_option4` varchar(300) DEFAULT NULL COMMENT '选项4',
 `f_option5` varchar(300) DEFAULT NULL COMMENT '选项5',
 `f_option6` varchar(300) DEFAULT NULL COMMENT '选项6',
 PRIMARY KEY (`f_info_id`,`f_id`)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8
 */
@Entity
@Table(name = "plug_test")
public class PlugTest {


    private int infoId;
    private int id;
    private int item;
    private String stem;
    private String answer;
    private String opt1;
    private String opt2;
    private String opt3;
    private String opt4;
    private String opt5;
    private String opt6;
    @Basic
    @Column(name = "f_answer", nullable = true, insertable = true, updatable = true, length = 300)
    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "f_id", nullable = true, insertable = true, updatable = true)
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
    @Basic
    @Column(name = "f_info_id", nullable = true, insertable = true, updatable = true)
    public int getInfoId() {
        return infoId;
    }

    public void setInfoId(int infoId) {
        this.infoId = infoId;
    }
    @Basic
    @Column(name = "f_item", nullable = true, insertable = true, updatable = true)
    public int getItem() {
        return item;
    }

    public void setItem(int item) {
        this.item = item;
    }
    @Basic
    @Column(name = "f_option1", nullable = true, insertable = true, updatable = true, length = 300)
    public String getOpt1() {
        return opt1;
    }

    public void setOpt1(String opt1) {
        this.opt1 = opt1;
    }
    @Basic
    @Column(name = "f_option2", nullable = true, insertable = true, updatable = true, length = 300)
    public String getOpt2() {
        return opt2;
    }

    public void setOpt2(String opt2) {
        this.opt2 = opt2;
    }
    @Basic
    @Column(name = "f_option3", nullable = true, insertable = true, updatable = true, length = 300)
    public String getOpt3() {
        return opt3;
    }

    public void setOpt3(String opt3) {
        this.opt3 = opt3;
    }
    @Basic
    @Column(name = "f_option4", nullable = true, insertable = true, updatable = true, length = 300)
    public String getOpt4() {
        return opt4;
    }

    public void setOpt4(String opt4) {
        this.opt4 = opt4;
    }
    @Basic
    @Column(name = "f_option5", nullable = true, insertable = true, updatable = true, length = 300)
    public String getOpt5() {
        return opt5;
    }

    public void setOpt5(String opt5) {
        this.opt5 = opt5;
    }
    @Basic
    @Column(name = "f_option6", nullable = true, insertable = true, updatable = true, length = 300)
    public String getOpt6() {
        return opt6;
    }

    public void setOpt6(String opt6) {
        this.opt6 = opt6;
    }

    @Basic
    @Column(name = "f_stem", nullable = true, insertable = true, updatable = true, length = 300)
    public String getStem() {
        return stem;
    }

    public void setStem(String stem) {
        this.stem = stem;
    }

//
//    /**
//     * add by cuizhikui on 14-12-28.
//     */
//    private String fZipCode;//邮编
//    private String fDean;//院长
//    private String fBed;//床位
//    private String fDailyVisit;//日诊量
//    private String fEquipment;//设备
//    private String fRoute;//路线
//    private String fWebsite;//网址
//    private String fEmail;//电邮
//
//
//
//    @Basic
//    @Column(name = "f_zip_code", nullable = true, insertable = true, updatable = true, length = 10)
//    public String getfZipCode()
//    {
//        return fZipCode;
//    }
//
//    public void setfZipCode(String fZipCode)
//    {
//        this.fZipCode = fZipCode;
//    }
//
//
//    @Basic
//    @Column(name = "f_dean", nullable = true, insertable = true, updatable = true, length = 50)
//    public String getfDean()
//    {
//        return fDean;
//    }
//
//    public void setfDean(String fDean)
//    {
//        this.fDean = fDean;
//    }
//
//    @Basic
//    @Column(name = "f_bed", nullable = true, insertable = true, updatable = true, length = 10)
//    public String getfBed()
//    {
//        return fBed;
//    }
//
//    public void setfBed(String fBed)
//    {
//        this.fBed = fBed;
//    }
//
//    @Basic
//    @Column(name = "f_daily_visit", nullable = true, insertable = true, updatable = true, length = 10)
//    public String getfDailyVisit()
//    {
//        return fDailyVisit;
//    }
//
//    public void setfDailyVisit(String fDailyVisit)
//    {
//        this.fDailyVisit = fDailyVisit;
//    }
//
//    @Basic
//    @Column(name = "f_equipment", nullable = true, insertable = true, updatable = true, length = 200)
//    public String getfEquipment()
//    {
//        return fEquipment;
//    }
//
//    public void setfEquipment(String fEquipment)
//    {
//        this.fEquipment = fEquipment;
//    }
//
//    @Basic
//    @Column(name = "f_route", nullable = true, insertable = true, updatable = true, length = 200)
//    public String getfRoute()
//    {
//        return fRoute;
//    }
//
//    public void setfRoute(String fRoute)
//    {
//        this.fRoute = fRoute;
//    }
//
//    @Basic
//    @Column(name = "f_website", nullable = true, insertable = true, updatable = true, length = 50)
//    public String getfWebsite()
//    {
//        return fWebsite;
//    }
//
//    public void setfWebsite(String fWebsite)
//    {
//        this.fWebsite = fWebsite;
//    }
//
//    @Basic
//    @Column(name = "f_email", nullable = true, insertable = true, updatable = true, length = 50)
//    public String getfEmail()
//    {
//        return fEmail;
//    }
//
//    public void setfEmail(String fEmail)
//    {
//        this.fEmail = fEmail;
//    }
//
//
//    /**
//     * add by cuizhikui on 14-12-28.
//     */
//
//
//
//
//
//    @Id
//    @Column(name = "f_hospital_id", nullable = false, insertable = true, updatable = true)
//    @GeneratedValue(strategy = GenerationType.IDENTITY)
//    public int getId() {
//        return id;
//    }
//
//    public void setId(int id) {
//        this.id = id;
//    }
//
//    @Basic
//    @Column(name = "f_hospital_name", nullable = false, insertable = true, updatable = true, length = 50)
//    public String getfHospitalName() {
//        return fHospitalName;
//    }
//
//    public void setfHospitalName(String fHospitalName) {
//        this.fHospitalName = fHospitalName;
//    }
//
//    @Basic
//    @Column(name = "f_hospital_description", nullable = true, insertable = true, updatable = true, length = 2000)
//    public String getfHospitalDescription() {
//        return fHospitalDescription;
//    }
//
//    public void setfHospitalDescription(String fHospitalDescription) {
//        this.fHospitalDescription = fHospitalDescription;
//    }
//
//    @Basic
//    @Column(name = "f_address", nullable = true, insertable = true, updatable = true, length = 200)
//    public String getfAddress() {
//        return fAddress;
//    }
//
//    public void setfAddress(String fAddress) {
//        this.fAddress = fAddress;
//    }
//
//    @Basic
//    @Column(name = "f_province_id", nullable = true, insertable = true, updatable = true)
//    public Integer getfProvinceId() {
//        return fProvinceId;
//    }
//
//    public void setfProvinceId(Integer fProvinceId) {
//        this.fProvinceId = fProvinceId;
//    }
//
//    @Basic
//    @Column(name = "f_city_id", nullable = true, insertable = true, updatable = true)
//    public Integer getfCityId() {
//        return fCityId;
//    }
//
//    public void setfCityId(Integer fCityId) {
//        this.fCityId = fCityId;
//    }
//
//    @Basic
//    @Column(name = "f_area_id", nullable = true, insertable = true, updatable = true)
//    public Integer getfAreaId() {
//        return fAreaId;
//    }
//
//    public void setfAreaId(Integer fAreaId) {
//        this.fAreaId = fAreaId;
//    }
//
//    @Basic
//    @Column(name = "f_telephone", nullable = true, insertable = true, updatable = true, length = 20)
//    public String getfTelephone() {
//        return fTelephone;
//    }
//
//    public void setfTelephone(String fTelephone) {
//        this.fTelephone = fTelephone;
//    }
//
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        PlugTest that = (PlugTest) o;

        if (id != that.id) return false;

        return true;
    }
//
//
//
//    @Basic
//    @Column(name = "f_hospital_tese", nullable = true, insertable = true, updatable = true, length = 200)
//    public String getfHospitalTese() {
//        return fHospitalTese;
//    }
//
//    public void setfHospitalTese(String fHospitalTese) {
//        this.fHospitalTese = fHospitalTese;
//    }
//
//    @Basic
//    @Column(name = "f_hospital_level", nullable = true, insertable = true, updatable = true, length = 20)
//    public String getfHospitalLevel() {
//        return fHospitalLevel;
//    }
//
//    public void setfHospitalLevel(String fHospitalLevel) {
//        this.fHospitalLevel = fHospitalLevel;
//    }
//
//    @Override
//    public int hashCode() {
//        int result = id;
//        result = 31 * result + (fHospitalName != null ? fHospitalName.hashCode() : 0);
//        result = 31 * result + (fHospitalDescription != null ? fHospitalDescription.hashCode() : 0);
//        result = 31 * result + (fAddress != null ? fAddress.hashCode() : 0);
//        result = 31 * result + (fProvinceId != null ? fProvinceId.hashCode() : 0);
//        result = 31 * result + (fCityId != null ? fCityId.hashCode() : 0);
//        result = 31 * result + (fAreaId != null ? fAreaId.hashCode() : 0);
//        result = 31 * result + (fHospitalLevel != null ? fHospitalLevel.hashCode() : 0);
//        result = 31 * result + (fTelephone != null ? fTelephone.hashCode() : 0);
//        result = 31 * result + (fZipCode != null ? fZipCode.hashCode() : 0);
//        result = 31 * result + (fDean != null ? fDean.hashCode() : 0);
//        result = 31 * result + (fBed != null ? fBed.hashCode() : 0);
//        result = 31 * result + (fDailyVisit != null ? fDailyVisit.hashCode() : 0);
//        result = 31 * result + (fEquipment != null ? fEquipment.hashCode() : 0);
//        result = 31 * result + (fRoute != null ? fRoute.hashCode() : 0);
//        result = 31 * result + (fWebsite != null ? fWebsite.hashCode() : 0);
//        result = 31 * result + (fEmail != null ? fEmail.hashCode() : 0);
//
//        return result;
//    }
}
